package cn.hfatec.shms.web.members.ykBill.dao;

import cn.hfatec.mybatis.mapper.SqlMapper;
import cn.hfatec.shms.web.members.ykBill.model.YkBill;
import cn.hfatec.shms.web.members.ykBill.model.YkBillParams;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 *
 * @author hfatec
 * @version 1.0
 *
 * the JAVA code is generate by middlegen
 *
 */
@Component("YkBillDao")
public interface YkBillDao extends SqlMapper {

    /**
     *
     * 查询数据
     *
    */
    public List queryYkBill(@Param("params") YkBillParams params);

    /**
     *
     * 根据主键获取数据
     *
     */
    public YkBill getYkBillById(Integer id);

    /**
     *
     * 根据主键获取数据
     *
     */
    public YkBill getYkBillByVipID(@Param("cardId") String cardId, @Param("vipType") Integer vipType);


    /**
     *
     * 插入数据
     *
     */
    public void insert(YkBill ykBill);

    /**
     *
     * 删除数据
     *
     */
    public void delete(Integer id);

    /**
     *
     * 更新数据
     *
     */
    public void update(YkBill ykBill);


    /**
     * 查询数据(我的客户)
     */
    public List queryOwnerCustomer(@Param("params") YkBillParams ykBillParams);
}
